<?php

class MainController extends Controller {

    private function _render($a, $data = null) {
        return $this->getView(__CLASS__, $a, $data);
    }

    public function indexAction() {
        echo 'Hello, World!';
    }

    public function newPageAction() {
        //echo 'This is a new page.';
        
        $me = 'Tony';
        $girls = array(
                'Nido', 'Cindy', 'Kate', 'Lily', 'Lucy', 'Hebe'
            );

        $this->_render(__FUNCTION__, array(
                'me' => $me,
                'girls' => $girls,
            ));
    }
    
}